TELRejectCall
Rejects an incoming call.
pascal TELErr TELRejectCall (TELCAHandle hTELCA, short reason);
hTELCA
- A handle to a call appearance structure for an incoming call. You obtain this handle from a
telCAAlertingMsg
or atelCAOfferMsg
message.reason
- Reserved.
- function result
- A result code.
DESCRIPTION
When your call appearance message handler gets atelCAAlertingMsg
or atelCAOfferMsg
message, you can call theTELRejectCall
function to reject an incoming call if it is rejectable.A call is rejectable when the
rejectable
bit in theotherFeatures
field of the call appearance structure is set. If the call is not rejectable, you can ignore the call or call theTELAnswerCall
function (page 4-30) to answer it.If
TELRejectCall
returnsnoErr
, the state of the call appearance changes from eithertelCAAlertingState
ortelCAOfferState
totelCAIdleState
. When your call appearance message handler gets thetelCAIdleMsg
message, you should dispose of the call appearance structure by calling theTELCADispose
function (page 4-52).You can use
TELRejectCall
to provide call screening. For instance, if the telephone tool and telephone switch support the caller ID feature, your application can obtain from the user those directory numbers from which the user does not want to receive calls. You can useTELRejectCall
to refuse calls from directory numbers the user specifies.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help